<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>滚图</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link href="${basePath}/admin/css/base.css" type="text/css" rel="stylesheet">
   	<style type="text/css">
		ul li{list-style:none;height:50px;}
	</style>
</head>
<body>
<p></p>
<div id="container" style="background:#f2ffe3 url(${basePath}/admin/images/main_00.jpg) left top repeat-x;">
<h2><#if adSlide.id??>更新<#else>添加</#if>滚图</h2>&nbsp;&nbsp;
     <form action="${basePath}/admin/slide/<#if adSlide.id??>update<#else>save</#if>" method="POST" onsubmit="return checkSubmit();" enctype="multipart/form-data">
      	<input type="hidden" name="adSlide.id" value="${adSlide.id!}"/>
      	<input type="hidden" name="adSlide.create_time" value="<#if adSlide.create_time??>${adSlide.create_time?string('yyyy-MM-dd HH:mm:ss')}<#else></#if>"/>
      	<ul>
        	<li>名称：		<input type="text" class="input_200" name="adSlide.name" value="${adSlide.name!}" />	${nameError!}</li>
        	<li>外链：		<input type="text" class="input_200" name="adSlide.href" value="${adSlide.href!'http://'}" />	${hrefError!}</li>
        	<li>
        		图片：		<input type="file" class="input_200" name="image_path" value="${adSlide.image_path!}" />
        				<#if adSlide.image_path??>
        					<a href="${basePath}${adSlide.image_path!}" target="_blank">查看图片</a>	${image_pathError!}
        				</#if>
        				<input type="hidden" name="old_image_path" value="${adSlide.image_path!}" />
        	</li>
        	<li>排序号:	<input type="text" class="input_100" name="adSlide.sort_id" value="${adSlide.sort_id!'-1'}" />	${sort_idError!}</li>
        	<li>
        		是否禁用:	
        				<#if adSlide.disable?? && adSlide.disable == 1>
	        				<input type="radio" name="adSlide.disable" value="1" checked="checked"/> 是
	        				<input type="radio" name="adSlide.disable" value="-1" /> 否
        				<#else>	
	        				<input type="radio" name="adSlide.disable" value="1"/> 是
	        				<input type="radio" name="adSlide.disable" value="-1" checked="checked"/> 否
        				</#if>
        				${disableError!}
        	</li>
        	<li>
        				<input type="reset" class="button_60" value="重置"	/>
        				<input type="submit" class="button_60" value="提交"	/>
        	</li>
             
           </ul>
      </form>
  </div>
</body>
</html>